//
//  WFWenBaTableViewCell.m
//  WangyiFangzuo
//
//  Created by 瑜 on 16/9/14.
//  Copyright © 2016年 111. All rights reserved.
//

#import "WFWenBaTableViewCell.h"
#import <UIImageView+WebCache.h>
@implementation WFWenBaTableViewCell

- (void)setModel:(WFWebBaModel *)model
{
    _model = model;
    [_imgTouXiang sd_setImageWithURL:[NSURL URLWithString:model.headpicurl]];
    _imgTouXiang.layer.cornerRadius = 15;
    _imgTouXiang.clipsToBounds = YES;
    _imgYuanhu.layer.cornerRadius = 17;
    _imgYuanhu.clipsToBounds = YES;
    [_imgZhengWen sd_setImageWithURL:[NSURL URLWithString:model.picurl]];
    _labZhengWen.text = model.alias;
    _lab1.text = model.classification;
    _lab2.text = [NSString stringWithFormat:@"%d关注",[model.concernCount intValue]];
    _lab3.text = [NSString stringWithFormat:@"%d提问",[model.questionCount intValue]];
    _labName.text = model.name;
    _labZhiYe.text = model.title;
    
}
+ (instancetype)cell
{
    return [[[NSBundle mainBundle] loadNibNamed:@"WFWenBaTableViewCell" owner:nil options:nil] lastObject];
}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
